<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>screen对象演示文档</title>
  </head>
  <body>
    <h3>你的屏幕:</h3>
    <script>
      console.log(Document);
      console.log(window.screen);
      document.write("总宽度/高度: ");
      document.write(screen.width + "*" + screen.height);
      document.write("<br>");
      document.write("可以宽度/高度: ");
      document.write(screen.availWidth + "*" + screen.availHeight);
      document.write("<br>");
      document.write("颜色深度: ");
      document.write(screen.colorDepth);
      document.write("<br>");
      document.write("颜色分辨率: ");
      document.write(screen.pixelDepth);
    </script>
  </body>
</html>
